<template>
  <div class="min-h-screen dark:bg-stone-950">
    <!-- 设置语言为中文 -->
    <el-config-provider :locale="locale">
      <!-- 动态渲染路由对应的组件 -->
      <router-view></router-view>
    </el-config-provider>
  </div>
</template>

<script setup>
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
const locale = zhCn
</script>

<style>
/* 自定义顶部加载 Loading 颜色 */
#nprogress .bar {
  background: rgba(177, 18, 107) !important;
}

#nprogress .spinner-icon {
  border-top-color: rgb(175, 17, 107) !important;
  border-left-color: rgb(57, 18, 111) !important;
}
</style>